package org.jiuling.wechat.publicplatform.model;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

/**
 * Rid信息
 * @author 紫灵
 * @date 2022年04月21日 00时16分40秒
 */
public class RidInfo {
    /** 发起请求的时间戳 */
    @JSONField(name = "invoke_time")
    private Date invokeTime;

    /** 请求毫秒级耗时 */
    @JSONField(name = "cost_in_ms")
    private long costInMs;

    /** 请求的URL参数 */
    @JSONField(name = "request_url")
    private String requestUrl;

    /** post请求的请求参数 */
    @JSONField(name = "request_body")
    private String requestBody;

    /** 接口请求返回参数 */
    @JSONField(name = "response_body")
    private String responseBody;

    /** 接口请求的客户端ip */
    @JSONField(name = "client_ip")
    private String clientIp;

    public Date getInvokeTime() {
        return invokeTime;
    }

    public void setInvokeTime(Date invokeTime) {
        this.invokeTime = invokeTime;
    }

    public long getCostInMs() {
        return costInMs;
    }

    public void setCostInMs(long costInMs) {
        this.costInMs = costInMs;
    }

    public String getRequestUrl() {
        return requestUrl;
    }

    public void setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl;
    }

    public String getRequestBody() {
        return requestBody;
    }

    public void setRequestBody(String requestBody) {
        this.requestBody = requestBody;
    }

    public String getResponseBody() {
        return responseBody;
    }

    public void setResponseBody(String responseBody) {
        this.responseBody = responseBody;
    }

    public String getClientIp() {
        return clientIp;
    }

    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }
}
